package com.qh.yyxt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qh.yyxt.pojo.entity.thing.ThingSize;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ThingSizeMapper extends BaseMapper<ThingSize> {
    public int add(ThingSize thingSize);
    public int addList(List<ThingSize> list);
    public int delete(Integer id);

    public int update(ThingSize thingSize);
    //修改num
    public int updateNum(Integer id,Integer num,Integer renum);
    public ThingSize findById(Integer id);
    public int findRenumById(Integer id);
    public List<ThingSize> findByTid(Integer tid);
    //Integer symbol 为null 就是增加 不为null就是减少
    public int updateNumBySymbol(Integer id,Integer renum,Integer symbol);
}
